/**
 * 歌手信息
 */
import axios from "@/utils/axios";

// 获取歌手详情
const getArtistDetail = (id: number) =>
  axios.get("/artist/detail", { params: { id } });

// 获取歌手粉丝数量
const getArtistFansCount = (id: number) =>
  axios.get("/artist/follow/count", { params: { id } });

// 获取歌手全部歌曲
const getArtistSongs = ({ id, limit = 5 }: { id: number; limit?: number }) =>
  axios.get("/artist/songs", { params: { id, limit } });

export { getArtistDetail, getArtistFansCount, getArtistSongs };
